package com.university.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.university.pojo.cqe.command.CmdSaveFood;
import com.university.pojo.cqe.command.CmdUpdateFood;
import com.university.pojo.cqe.query.FoodQuery;
import com.university.pojo.dto.FoodUserDTO;
import com.university.pojo.entity.Food;

import java.util.List;

public interface FoodService {
    void saveFood(CmdSaveFood cmdSaveFood);

    void updateFood(CmdUpdateFood cmdUpdateFood);

    void deleteFood(String id);

    IPage<Food> adminGetFoodPage(FoodQuery query);

    List<FoodUserDTO> userGetFood(FoodQuery query);
}
